package com.dot.util;

import java.util.List;

public class Page<T> {

	private int pageNo;
	
	private int pageSize = 20;
	
	private Long rowcounts;
	
	private int rowStartIndex;
	
	private List<T> data; 
	
	public Page(int pageNo, int pageSize){
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		this.rowStartIndex = pageNo * pageSize;
	}
	
	public Page(int pageNo){
		this.pageNo = pageNo;
		this.rowStartIndex = pageNo * pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Long getRowcounts() {
		return rowcounts;
	}

	public void setRowcounts(Long rowcounts) {
		this.rowcounts = rowcounts;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public int getRowStartIndex() {
		return rowStartIndex;
	}

	public void setRowStartIndex(int rowStartIndex) {
		this.rowStartIndex = rowStartIndex;
	}
	
	
	
}
